<?php
class DzbModel extends Action{
	//test
	//
	//############test
	public function getdzblsbydwid($dwid){
		$info=collectinfo(__METHOD__,'$dwid',array($dwid));
		
		if($dwid){$where='f_dzb_dwid='.$dwid;}else{$where='';}
		
		$dzb=M('dzb');
		$dzbls=$dzb->where($where)->select();

		return createarrok('ok',$dzbls,'',$info);
	}
	
	public function getmobydzbnm($dzbnm){
		$info=collectinfo(__METHOD__,'$dzbnm',array($dzbnm));
		
		$dzb=M('dzb');
		$dzbo=$dzb->where("dzbnm='".$dzbnm."'")->find();

		return createarrok('ok',$dzbo,'',$info);
	}

} 
?>